package com.mayblackcat.dy.dao;

import com.mayblackcat.dy.entity.User;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao {



    @Update("update t_user set userName=#{userName},description=#{description},sex=#{sex},birth=#{birth},school=#{school} where id=#{id}")
    public void updateUserAll(User user);


    @Select("select * from t_user where id=#{id}")
    public User getUserById(long id);


    @Update("update t_user set watchVideo=#{watchVideo} where id=#{id}")
    public void updateWatchVideo(User user);
}
